import request from "../utils/request";

/**
 *  利润管理
 */
//利润管理列表
export async function fetchProfitList(params) {
    return await request.get('finance/profitList', {params: params})
}
//添加利润管理
export async function increaseProfit(params) {
    return await request.post('finance/profitAdd', params)
}
//修改利润管理
export async function updateProfit(params) {
    return await request.post('finance/profitUpdate', params)
}
//导入利润管理
export async function importProfit(params) {
    return await request.post('finance/profitImport', params)
}
/**
 *  损益明细管理
 */
//损益明细管理列表
export async function fetchProfitLossList(params) {
    return await request.get('finance/profitLossList', {params: params})
}
//添加损益明细管理
export async function increaseProfitLoss(params) {
    return await request.post('finance/profitLossAdd', params)
}
//修改损益明细管理
export async function updateProfitLoss(params) {
    return await request.post('finance/profitLossUpdate', params)
}
//导入损益明细管理
export async function importProfitLoss(params) {
    return await request.post('finance/profitLossImport', params)
}
/**
 *  资产负债管理
 */
//资产负债列表
export async function fetchProfitAssetsList(params) {
    return await request.get('finance/assetsList', {params: params})
}
//添加资产负债
export async function increaseProfitAssets(params) {
    return await request.post('finance/assetsAdd', params)
}
//修改资产负债
export async function updateProfitAssets(params) {
    return await request.post('finance/assetsUpdate', params)
}
//导入资产负债
export async function importProfitAssets(params) {
    return await request.post('finance/assetsImport', params)
}
/**
 *  经营分析管理
 */
//经营分析列表
export async function fetchProfitAnalysisList(params) {
    return await request.get('finance/analysisList', {params: params})
}
//添加经营分析
export async function increaseProfitAnalysis(params) {
    return await request.post('finance/analysisAdd', params)
}
//修改经营分析
export async function updateProfitAnalysis(params) {
    return await request.post('finance/analysisUpdate', params)
}
//导入经营分析
export async function importProfitAnalysis(params) {
    return await request.post('finance/analysisImport', params)
}
/**
 *  季度经营预算管理
 */
//季度经营预算列表
export async function fetchProfitOperating(params) {
    return await request.get('finance/operatingList', {params: params})
}
//添加季度经营预算
export async function increaseProfitOperating(params) {
    return await request.post('finance/operatingAdd', params)
}
//修改季度经营预算
export async function updateProfitOperating(params) {
    return await request.post('finance/operatingUpdate', params)
}
/**
 *  名词解析
 */
//名词解析列表
export async function fetchDocumentList(params) {
    return await request.get('finance/documentList', {params: params})
}
//修改名词解析
export async function updateDocument(params) {
    return await request.post('finance/documentUpdate', params)
}
